Entries()

General System Function

Syntax samples

ENTRIES(<location>)

DISPLAY "LocA has had" $ ENTRIES(LocA) $ "entries."

Description

Returns the total entries to a location. This function returns an integer.

Valid In

Any logic and any field except those evaluated only at translation. For a list of fields evaluated at translation see the Appendix A.

Components

<location>

The location to examine.

Example

A location, Stores, sends entities, Orders, to a location, Shipping. A variable, Batch_Time, tracks the amount of time it takes to process 50 Orders. After Loc1 processes 50 entities, we want to reset Batch_Time to zero.

Process Table

Entity

Location

Operation (min)

Order

Stores

IF ENTRIES(Loc1) = 50 THEN

Batch_Time = 0

Routing Table

Blk

Output

Destination

Rule

Move Logic

1

Order

Shipping

FIRST 1

MOVE FOR 30

See Also

IF...THEN...ELSE.